<?php

class Action
{
    public function index() {
        $page_no = $search_filter = $is_excel = null;

        extract(URLTracker::init(array(
            'page_no' => 1,
            'search_filter' => array(),
            'is_excel' => 0,
        )));
        $order_filter['type'] = 1;
        $order_filter['is_enable'] = 1;
        $order_filter['status'] = 1;
        $order_filter['progress != '] = 15;
        if (isset($search_filter['start_date']) && $search_filter['start_date']) {
            $order_filter['add_time >='] = $search_filter['start_date'] . " 00:00:00";
        }

        if (isset($search_filter['end_date']) && $search_filter['end_date']) {
            $order_filter['add_time <='] = $search_filter['end_date'] . " 23:59:59";
        }
        $order_list = get_data_list_all('order', $order_filter);
        $nationwide = array();
        $order_ids = array();
        foreach ($order_list as $k => $v) {
            $order_ids[] = $v['id'];
        }
        $nationwide[] = records_center_helper::get_goods_message($order_ids);
        foreach ($nationwide as $k => $v) {
            $nationwide[$k]['number'] = $k + 1;
        }

        Response::assign('article_category', records_center_config::$article_category);

        Response::assign('nationwide', $nationwide);
        Response::assign('search_filter', $search_filter);

        Response::display('admin/records_center_nationwide_list.html');
    }

}

?>